Skip to content

Conversation

trefzer
Copy link
Contributor

@trefzer trefzer commented May 29, 2025

add support for the upcoming debian trixie release.

@sid3windr
Copy link

Works for me, thanks!

@smortex smortex changed the title add globals defaults for trixie debian version Add support for Debian 13 (trixie) Aug 26, 2025
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like perforce CI is broken, but this does the right thing on the Debian 13 nodes I tested, so let's merge this.

@smortex smortex merged commit 0c6f4f1 into puppetlabs:main Aug 26, 2025
1 check passed
---
# Defaults for Debian Bullseye (11)

postgresql::globals::python_package_name: 'python3-psycopg2'
Copy link
Collaborator

@bastelfreak bastelfreak Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change broke the tests. And I don't know why a Debian 11 change is in the Debian 13 PR. The default for Debian 11 is set at https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/manifests/params.pp#L97 . But that default seems to be wrong, because the actual package name is python3-psycopg2 ? See https://packages.debian.org/search?suite=bullseye&searchon=names&keywords=python3-psycopg2

I think the issue here is that Debian 11 was added to metadata.json without proper (acceptance) tests and nobody used the python extension, so people didn't notice it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the code in the module for debian 11 was wrong for years?

It appears that way. In #1557 (comment) I wonder why I stated that there as a python-psycopg2 for Debian 11.

This change fixed the code, but in the wrong place

Correct. Including this here is weird: it negates the code we have for it:

if $_ubuntu_2204 or $_debian_11 {
$python_package_name = pick($python_package_name, 'python3-psycopg2')
} else {
$python_package_name = pick($python_package_name, 'python-psycopg2')
}

And then all your other observations are also correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants